home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: MegaDisc / MegaDisc 32 (1993-02)(MegaDisc Digital Publishing)(AU)(Disk 2 of 2).zip / MegaDisc 32 (1993-02)(MegaDisc Digital Publishing)(AU)(Disk 2 of 2).adf / Dir_Utes / Using_DirUtes / Using_DirUtes
Text File  |  1993-02-11  |  17KB  |  386 lines

  1.  
  2.  
  3.                             Recommmended for Beginners
  4.  
  5.  
  6.                    DIRECTORY UTILITIES: FUNCTIONS AND USE 
  7.  
  8.                                     by
  9.  
  10.                                Leigh  Murray
  11.  
  12.  
  13.    ]] 32 [[ ]] 32 [[ ]] 32 [[ ]] 32 [[ ]] 32 [[ ]] 32 [[ ]] 32 [[ ]] 32 [[
  14.  
  15.  
  16. INTRODUCTION
  17.  
  18.    This is a companion article to the Directory Utilities Overview, which
  19.   should probably be read (or skimmed) before this one.  Here I will describe
  20.   the basic functions and the use of directory utilities in more detail, with
  21.   an emphasis on what I consider to be The Big Three of directory utilities:
  22.   SID2, DirWork, and Directory Opus.  These notes are primarily designed to
  23.   be used with the Directory Utility Starter disk (START 2, from Megadisc
  24.   PD), but they are independent of it.
  25.  
  26.  
  27. COMMAND CONTROL
  28.  
  29. Basic Functions
  30.  
  31.    Below is a summary of the functions most commonly provided by directory
  32.   utilities.  A function is not necessarily given the same name in the
  33.   different utilities, so I have listed alternatives.  There is also a table
  34.   of SID2, Directory Opus and DirWork button correspondences.
  35.  
  36.  
  37. CopyCats
  38.  
  39.   COPY         Copy files/directories from one directory list to another
  40.   COPY AS      Copy files/directories from one directory list to another,
  41.                  giving them new names (eg COPY File.X AS File.Y);  a pop-up
  42.                  requester will display the name of each selected entry so
  43.                  you can rename it as it is copied
  44.   MOVE         Copy files/directories from one directory list to another then
  45.                  delete them from the source directory
  46.   MOVE AS      Copy files/directories from one directory list to another,
  47.                  giving them new names and then deleting them from the source
  48.   DUP / CLONE  Make a Duplicate copy of a file (in the same directory),
  49.                  giving it a new name
  50.  
  51.  
  52. Make or Break
  53.  
  54.   DELETE       Delete selected files/directories
  55.   RENAME       Rename files/directories to the new name(s) specified
  56.   MAKEDIR      Make a new directory (with an optional default icon)
  57.   NOTE/COMMENT Add or modify the filenote attached to all selected files or
  58.                  directories (the Amiga lets you add a 79-character extension
  59.                  to each file or directory, to further identify it)
  60.  
  61.  
  62. Displayers
  63.  
  64.   READ / TYPE  Display a text file (double-click on its name does the same)
  65.   VIEW / SHOW  Display an IFF picture or icon (or font in Directory Opus)
  66.   PLAY / SOUND Play a sound file
  67.   XREAD/HXTYPE Display a file in hexadecimal
  68.  
  69.  
  70. Editors
  71.  
  72.   EDIT         Edit a text file (letter, startup-sequence, program listing)
  73.   XEDIT        Edit a file in hexadecimal format
  74.  
  75.  
  76. All or Nothing
  77.  
  78.   ALL          Select ALL the files in a directory list
  79.   NONE / NO    Select NO files (ie, DESELECT any selected files) in the list
  80.  
  81.  
  82. Find and Seek
  83.  
  84.   PATTERN /    Select files depending on specified pattern criteria which
  85.     BY NAME      you supply in the requester that pops up (eg #?.info will
  86.                  select all files in that list ending with .info)
  87.   SEARCH       Search files for a particular text string
  88.   FIND / HUNT  Search directories for a particular filename
  89.  
  90.  
  91. Runs
  92.  
  93.   RUN          Run the selected programs
  94.   NEWCLI       Open a new CLI window
  95.   EXECUTE      Execute the selected batch files
  96.  
  97.  
  98. Arcing
  99.  
  100.   ARC          Make an archived file of all selected entries
  101.   LISTARC      List the contents of an archived file
  102.   UNARC        Unarchive the selected files
  103.  
  104.  
  105. Sizing Up
  106.  
  107.   BYTES / INFO Total bytes, files and directories (displayed in message box)
  108.   FIT          Check if selected entries will fit on the destination disk
  109.  
  110.  
  111. Print and Protect
  112.  
  113.   PRINT        Print selected files
  114.   PROTECT      Display or modify the protection bits in files
  115.  
  116.  
  117. SID, Directory Opus and DirWork Command Correspondences
  118.  
  119.   SID      DO        DW        Function
  120.  
  121.   MAKEDIR  MAKEDIR   MkDir     Make a new directory
  122.   READ     READ      Type      Display an ASCII text file
  123.   XREAD    HEXREAD   HxTyp     Display a file in hexadecimal format
  124.   VOL      ASSIGN    Volms     List assigned volumes
  125.   EXECUTE  EXECUTE   EScpt     Execute a script file
  126.   BYTES    BYTE      Info      Size of all selected files/directories
  127.   SEARCH   SEARCH    Serch     Search a file for a given text string
  128.   FIND     HUNT        -       Search selected directories for a file
  129.   NOTE     COMMENT     -       Add or modify a filenote
  130.   PROTECT  PROTECT   Prote     Modify or display protection bits
  131.   DUP      CLONE       -       Duplicate a file
  132.   VIEW     SHOW      Show      Show a picture
  133.   SOUND    PLAY      PlayS     Play a sound sample
  134.  
  135.   Ctrl +   ? then
  136.    button   button     -       Online HELP
  137.  
  138.  
  139. OF MICE AND METHODS
  140.  
  141.    The mouse is the predominant means of operating a directory utility: just
  142.   point and click to perform most operations.  The only typing required is in
  143.   requesters when, for instance, you need to specify the new name for a file.
  144.  
  145. Left Mouse Button
  146.  
  147.    CLICK ONCE on names to select files or directories for copying, renaming,
  148.   deleting etc.  CLICK ONCE on buttons and gadgets: on Devices, Commands or
  149.   special gadgets such as the Parent Directory gadget of SID or DirWork.
  150.  
  151.    DOUBLE-CLICK on a file name to perform instant actions such as READing a
  152.   text file, VIEWing a picture, or PLAYing a sound file.  DOUBLE-CLICK on a
  153.   directory name to display a listing of the contents of that directory.
  154.  
  155. Right Mouse Button
  156.  
  157.    CLICK ONCE on a directory list to ACTIVATE that list;  and SID, DirWork
  158.   and Directory Opus each have additional uses for the right mouse button.
  159.   For example, with SID2, clicking the right mouse button anywhere in the
  160.   bank of command buttons, swaps to the next button bank;  clicking it
  161.   anywhere in the message box cycles through file displays by size, date,
  162.   note etc.  Similarly, the right mouse button can be used in Directory Opus
  163.   to select the other device button bank.  And in DirWork, clicking with the
  164.   right mouse button anywhere in either Path Field gives a display of devices
  165.   and assigned volumes on that side of the directory display.
  166.  
  167. Starting Up
  168.  
  169.    SID, Directory Opus and DirWork can all be started by clicking on an icon,
  170.   or from the CLI, or automatically via the startup-sequence.
  171.  
  172. Getting on with the Job
  173.  
  174.    When the directory utility has started, click on a device button to
  175.   display the first directory list.  Then for DirWork or SID, which have two
  176.   sets of device buttons, click on the device button in the other list to
  177.   display a second directory list;  for Directory Opus, which has only one
  178.   set of device buttons, click first on the other directory list to activate
  179.   it, then click on the device button.
  180.  
  181.    After a directory list has been displayed, select an entry or entries
  182.   (files or directories) and then click on commands, such as COPY or DELETE
  183.   or RENAME;  these commands will operate only on those selected files.
  184.  
  185.    To Delete, Rename, Read or Show files, only one directory list need be
  186.   displayed:  the one containing the files those commands are to act on.
  187.  
  188.    But before issuing a Copy or Move command, two lists must be displayed,
  189.   one the source directory you are copying from, and the other the
  190.   destination directory you want to copy to.
  191.  
  192. Iconifying and Quitting
  193.  
  194.    Click on the SHRINK gadget (SID), SLEEP (DirWork) or the ICONIFY gadget
  195.   (Directory Opus) to iconify.  The iconifying process is a handy feature of
  196.   these programs;  this shrinks the directory display to a tiny bar (or
  197.   becomes invisible in the case of DirWork), frees chip RAM, and sits waiting
  198.   for you to reactivate it whenever you want to do some more work with it.
  199.  
  200.    To reactivate SID, click on the Shrink gadget again;  for Directory Opus,
  201.   click on the small title bar, once with the left mouse button and then once
  202.   with the right mouse button;  and to wake DirWork up from its sleep, press
  203.   the 3 left hand keys (Ctrl, Shift and Alt) and the D key at the same time.
  204.  
  205.    To Quit any of these utilities, click on the CLOSE gadget.
  206.  
  207. Multiple Selections
  208.  
  209.    Commands generally apply only to selected files or directories.  You can
  210.   select files or directories one at a time, or whole swags of files and/or
  211.   directories (by holding down the left mouse button and dragging it down
  212.   the list, or by selecting the ALL button to select all files etc).  When
  213.   more than one file or directory is selected, the command you click on will
  214.   apply to all selected entries.
  215.  
  216.    Some commands, such as Rename, View or Play, apply to selected entries one
  217.   at a time;  if you select multiple picture files, and then select the view
  218.   command, each picture will be displayed one after another -  similarly,
  219.   text and sound files.
  220.  
  221.    Other commands apply to the whole group of selected entries;  for example,
  222.   Info in DirWork will give you the total size of all the selected entries.
  223.  
  224. Requesters
  225.  
  226.    For any commands that require a new filename or directory name to be
  227.   supplied, a requester will pop up after you have selected the file (or
  228.   files) and clicked on the command.  Such commands include Rename, Delete,
  229.   Copy As, Move As, Makedir, Duplicate and Pattern.
  230.  
  231.    The requester will give you the option of typing in a new name or
  232.   cancelling the operation.  If you have selected multiple entries, a
  233.   requester will pop up for each entry (file or directory) one at a time, and
  234.   you can abort the process on any one of these.
  235.  
  236.  
  237. LEARNING TO USE A DIRECTORY UTILITY
  238.  
  239. Make BACKUPS and a TEST disk
  240.  
  241.    You should make a backup copy of any disk on which you'll be changing or
  242.   replacing files, and work off the backup until you become more experienced.
  243.   Then you can fall back to using the original disk if you find the new files
  244.   don't work properly, while you figure out what is wrong (don't get
  245.   distressed if this happens; it can help you to learn).  (And if you can't
  246.   figure it out after trying for a while, ask for help from someone suitable,
  247.   such as experienced members of your local user group or MegaDisc.)
  248.  
  249.    The safest way of learning to use a directory utility is to make a TEST
  250.   disk.  You could create such a disk by formatting a new disk (say, via the
  251.   Workbench command Initialise), renaming it TEST and then copying a bunch of
  252.   different directories and files to it from any issue of MegaDisc.  (If you
  253.   first make sure the MegaDisc is write-protected, you could safely use a
  254.   directory utility to copy the files.)  Or you could Diskcopy a MegaDisc,
  255.   and rename the copy TEST.
  256.  
  257. Practice Makes Perfect
  258.  
  259.    Practice on the TEST disk by using one of the directory utilities for
  260.   copying, moving, renaming and deleting files, making new directories
  261.   (drawers), viewing pictures or icons, and displaying text files.  Because I
  262.   think DirWork is probably the best of The Big Three for beginners (very
  263.   easy to use, and suitable for those with only one drive or without great
  264.   gobs of memory), I will use it in the following examples;  these functions
  265.   would also be available in SID and Directory Opus (but many are disabled in
  266.   the Demo of Directory Opus).
  267.  
  268.    Double-click on the icon for DW in the DirWork drawer to activate it;  you
  269.   can stop it by using the close gadget on the top LHS of the window, or put
  270.   it to Sleep by clicking on that gadget (to wake it up again, press the
  271.   Ctrl, Left Shift, Left Alt and D keys all together).  Use the front/back
  272.   gadgets on its title bar to go to and from the Workbench screen.
  273.  
  274. The Most Useful Commands
  275.  
  276.    The functions I found most useful initially were COPY, MOVE, RENAME,
  277.   DELETE, MAKEDIR, TYPE and SHOW.
  278.  
  279.    DirWork is the type of directory utility that displays two file lists side
  280.   by side.  The great benefit of this is that you can have, say, a directory
  281.   list of df0: on the right side, and a directory list of df1: or RAM: on the
  282.   left.  Or two different directories from the one disk on each side.  One
  283.   listing can represent the source listing (the directory you are copying
  284.   from, for example) and one the destination (the directory you are copying
  285.   to), and you can see both at the same time.
  286.  
  287.    For example, you may want to copy a file from the disk in df0: to RAM:.
  288.   Using the left mouse button (LMB) for selection, click once on the RAM:
  289.   button on the left side, then once on the df0: button on the right side
  290.   (you could use the opposite sides if you prefer), highlight the file you
  291.   wish to copy in the df0: list (by a single click on it with the LMB), and
  292.   click once on the right hand COPY button.  The file will be copied to RAM:,
  293.   and you will see it appear in the RAM: file list on the left side.
  294.  
  295.    If you had wanted to copy the file to a particular directory on the RAM
  296.   disk, you would need to display that directory first (by double-clicking on
  297.   its name), before selecting the file to be copied and clicking on the COPY
  298.   button.  Or you could make a new directory on RAM: by clicking on the left
  299.   MKDIR button, then nominating the name of the directory you wish to create.
  300.  
  301.    By highlighting a directory, you can copy or move or delete that entire
  302.   directory.  Or if multiple files are highlighted in a list, all those files
  303.   are copied, renamed etc.
  304.  
  305.    You can use the AL button (short for 'all') to highlight all the files in
  306.   a listing, and the NO button (short for 'none') to remove all highlights.
  307.  
  308.    The MOVE command is handy for shifting files from one directory to
  309.   another. (Note the difference between COPY and MOVE:  MOVE deletes the
  310.   source files after they have been copied, COPY doesn't.)
  311.  
  312.    A text file can be displayed either by double-clicking on it or by
  313.   highlighting it with a single click and then clicking on the TYPE button
  314.   above it.  Similarly, any picture in IFF format (or an icon) can be viewed
  315.   by double-clicking on it, or by highlighting it then selecting the SHOW
  316.   button above.
  317.  
  318.    Note that if the device buttons don't contain all the device addresses
  319.   that exist on your system, you can still display the directory entries for
  320.   any device.  First click on Volms (DirWork), or VOL (SID2), or S (Directory
  321.   Opus - use the right mouse button for this one) to display the Devices and
  322.   Assigns on your system.  Then click on the entry for the device you want.
  323.  
  324.  
  325. ONE-DRIVE SYSTEMS
  326.  
  327.    If you only have a one-drive system, then you won't be able to use a
  328.   directory utility to copy files directly from one disk to another, but such
  329.   a utility will still provide the easiest way of making directories,
  330.   deleting and renaming files.  (Seriously consider buying a second drive if
  331.   you can possibly afford one; at less than $150, I doubt you'll regret it.)
  332.  
  333.    On a one-drive system, you could use a two-stage process (which would be
  334.   quite quick and easy) to copy files with a directory utility.  As the first
  335.   stage, copy files from df0: to the RAM disk.  Then, as stage 2, remove the
  336.   source disk from df0:, replace it with the destination disk, and copy the
  337.   files from the RAM disk to your destination disk.  (Don't forget that all
  338.   files will be deleted from the RAM disk if you have to reboot, so copy them
  339.   back to df0: as soon as possible.)
  340.  
  341.    Also, all Workbench 1.3 users should routinely make the AmigaDOS Run
  342.   command resident after each boot, to save on disk-swapping (open a Shell
  343.   and type resident c:run    then   endcli).  The Run command is tiny, so
  344.   making it resident won't devour your RAM but this can certainly save a lot
  345.   of swaps.  Try it and see.
  346.  
  347.  
  348. BEST FOR BEGINNERS
  349.  
  350.    Probably the easiest of the three utilities for beginners (and one-drive
  351.   users) is DirWork;  just double-click its icon and it's ready to go.  It is
  352.   small, fast and intuitive to use, and has all of its functions available.
  353.   I found the full DirWork documentation a bit daunting, but you shouldn't
  354.   need to read that initially.  To get started, just skim the Directory
  355.   Utilities Overview and this document, make a test disk, and try DirWork.
  356.  
  357.    The next easiest-to-use utility on the Starter disk is probably SID;  see
  358.   the notes provided in Read_Me_First in the SID2 drawer.
  359.  
  360.    To use Directory Opus, arp.library must be in the libs: directory on your
  361.   system if you don't have Workbench 2; it is quite an easy task to copy it.
  362.   But many functions have been disabled in the Demo, making it less useful
  363.   and more difficult to evaluate.
  364.  
  365.  
  366. FINALLY
  367.  
  368.    I found it well worth the trouble to learn to use a directory utility;
  369.   file maintenance tasks became miles easier, and my knowledge of the Amiga
  370.   expanded greatly.  And my Amiga computing became much more enjoyable once I
  371.   understood it better.
  372.  
  373.  
  374.  
  375. © Leigh Murray
  376.   Queanbeyan NSW
  377.  
  378.   January 1993
  379.  
  380.  
  381.  
  382.    ]] 32 [[ ]] 32 [[ ]] 32 [[ ]] 32 [[ ]] 32 [[ ]] 32 [[ ]] 32 [[ ]] 32 [[
  383.  
  384.  
  385.  
  386.